package com.basic.business.upDate.service;


import com.basic.business.upDate.domain.TGoodsUpDate;
import com.basic.common.core.service.IBaseService;

import java.util.Date;
import java.util.List;

/**
 * 商品上新日期管理Service接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface ITGoodsUpDateService extends IBaseService<TGoodsUpDate> {

    /**
     * 批量插入或更新
     *
     * @param list
     */
    void batchInsertOrUpdate(List<TGoodsUpDate> list);


    /**
     * 根据商品ID更新上新日期
     * @param upNewDate
     * @param goodsId
     * @return
     */
    int updateDateByGoodsId(Date upNewDate, String goodsId);

}
